/*
 *   Clovis
 *   Copyright (C) 2008 SFWOL
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include "Rect.h"

namespace clovis {

	namespace core {

		Rect::Rect(CInteger x, CInteger y, CInteger w, CInteger h){

			this->x = x;
			this->y = y;
			this->w = w;
			this->h = h;

		}

		void Rect::setXY(CInteger x, CInteger y){

			this->x = x;
			this->y = y;

		}

		void Rect::setXY(Point<CInteger> point){

			this->x = point.getX();
			this->y = point.getY();

		}

		Point<CInteger> Rect::getXY(){

			Point<CInteger> temp (this->x, this->y);
			return temp;

		}

		void Rect::setX(CInteger x){

			this->x = x;

		}

		void Rect::setY(CInteger y){

			this->y = y;

		}

		void Rect::setW(CInteger w){

			this->w = w;

		}

		void Rect::setH(CInteger h){

			this->h = h;

		}

		CInteger Rect::getX(){

			return this->x;

		}

		CInteger Rect::getY(){

			return this->y;

		}

		CInteger Rect::getW(){

			return this->w;

		}

		CInteger Rect::getH(){

			return this->h;

		}

	};

};
